package com.itheima.abs;

public class Man extends Person {

    private int liqi;

    public Man(int age, String name, int liqi) {
        super(age, name);
        this.liqi = liqi;
    }

    public Man(){
    }

    public int getLiqi() {
        return liqi;
    }

    public void setLiqi(int liqi) {
        this.liqi = liqi;
    }

    @Override
    public void eat() {
        System.out.println("大吃大喝");
    }

    @Override
    public void study() {
        System.out.println("学习建筑");
    }

    public void show(){
        System.out.println(getName()+"..."+getAge()+"..."+getLiqi()+"公斤");

    }
}
